﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HideColumn.ascx.cs" Inherits="controls_HideColumn" %>
<ajaxToolkit:Accordion ID="MyAccordion" runat="Server" SelectedIndex="-1" HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent"
    AutoSize="None" FadeTransitions="true" TransitionDuration="250" FramesPerSecond="40"
    RequireOpenedPane="false" SuppressHeaderPostbacks="true">
    <Panes>
        <ajaxToolkit:AccordionPane HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
            ContentCssClass="accordionContent">
            <Header>
                <span>Hide column </span>
            </Header>
            <Content>
                <asp:Button ID="bHide" runat="server" CssClass="formButton" Text="Hide" OnClick="bHide_Click" />
                <table style="width: 100%;">
                    <tr>
                        <td style="width: 50%; vertical-align: top;">
                            <div class="section">
                                <h4 class="header">
                                    Factos</h4>
                                <table style="width: 100%;">
                                    <asp:Repeater ID="m_rptFactorsCategories" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td colspan="2">
                                                    <span style="font-size: 13px; font-weight: bold;">
                                                        <asp:CheckBox ID="cmCategori" runat="server" Text='<%# Eval("Name") %>' OnCheckedChanged="cb_GroupFactorCheckedChanged"
                                                            AutoPostBack="true" />:</b> </span>
                                                    </span>
                                                </td>
                                            </tr>
                                            <asp:Repeater ID="m_Repeater" runat="server" DataSource='<%# Eval("Factors") %>'>
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            &nbsp&nbsp<asp:CheckBox ID="cbFactors" runat="server" OnCheckedChanged="cb_CheckedChanged"
                                                                AutoPostBack="true" Text='<%# Eval("Name") %>' />
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </table>
                            </div>
                        </td>
                        <td style="width: 50%; vertical-align: top;">
                            <div class="section">
                                <h4 class="header">
                                    Practices</h4>
                                <table style="width: 100%;">
                                    <asp:Repeater ID="m_rptAgileMethods" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td colspan="2">
                                                    <span style="font-size: 13px; font-weight: bold;"><b>
                                                        <asp:CheckBox ID="cmAgileMethods" runat="server" Text='<%# Eval("Name") %>' OnCheckedChanged="cb_GroupCheckedChanged"
                                                            AutoPostBack="true" />:</b> </span>
                                                </td>
                                            </tr>
                                            <asp:Repeater ID="m_rptAgilePractices" runat="server" DataSource='<%# Eval("AgilePractices") %>'>
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            &nbsp&nbsp<asp:CheckBox ID="cbAgile" runat="server" Text='<%# Eval("Name") %>' OnCheckedChanged="cb_CheckedChanged"
                                                                AutoPostBack="true" />
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </table>
                            </div>
                            <div class="clr">
                                &nbsp;</div>
                        </td>
                    </tr>
                </table>
                <asp:Button ID="Button1" runat="server" CssClass="formButton" Text="Hide" OnClick="bHide_Click" />
            </Content>
        </ajaxToolkit:AccordionPane>
    </Panes>
</ajaxToolkit:Accordion>
